package moder

import "gorm.io/gorm"

type User struct {
	gorm.Model
	Username string `gorm:"type:varchar(100)"`
	Password string `gorm:"type:varchar(100)"`
}

type Rode struct {
	gorm.Model
	UserRode string `gorm:"type:varchar(100)"`
}

type UserRode struct {
	gorm.Model
	Uid int `gorm:"type:int"`
	Rid int `gorm:"type:int"`
}

type Node struct {
	gorm.Model
	RodeNode string `gorm:"type:varchar(100)"`
}

type RodeNode struct {
	gorm.Model
	Rid int `gorm:"type:int"`
	Nid int `gorm:"type:int"`
}

type Goods struct {
	gorm.Model
	GoodsNo   string `gorm:"type:varchar(100)"`
	GoodsName string `gorm:"type:varchar(100)"`
}

type Order struct {
	gorm.Model
	OrderNo     string `gorm:"type:varchar(100)"`
	OrderName   string `gorm:"type:varchar(100)"`
	OrderPricer int    `gorm:"type:int"`
	Gid         int    `gorm:"type:int"`
}

type GoodsOrder struct {
	ID          string
	GoodsNo     string
	GoodsName   string
	OrderNo     string
	OrderName   string
	OrderPricer string
}
